package cn.stylefeng.guns.modular.business.frequency.agreement.mapper;

import cn.stylefeng.guns.modular.business.frequency.agreement.entity.Agreement;
import cn.stylefeng.guns.modular.business.frequency.agreement.model.result.AgreementDetailResult;
import cn.stylefeng.guns.modular.business.frequency.agreement.model.result.AgreementPageResult;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * 协议表 Mapper 接口
 *
 * @author 李文龙
 * @date 2021/10/28 13:58
 */
@Repository
public interface AgreementMapper extends BaseMapper<Agreement> {

   Page<AgreementPageResult> page(@Param("page") Page page, @Param("name") String name);

   AgreementDetailResult detail(@Param("id") Long id);

}